#ifndef __INCOMING_H__
#define __INCOMING_H__

#include <global.h>
#include <noncopyable.h>
#include <stdint.h>
#include <poller.h>

HTTP_SVR_NS_BEGIN

class CListener;

class CIncoming : private noncopyable
{
public: //method
    CIncoming (void);
    virtual ~CIncoming (void);

    static CIncoming* Instance (void);
    static void Destroy (void);

    int open (void);

    int run (void);
    
private: //property
    CPollerUnit*    _pollerunit;
    CListener*      _listener;
    int             _epwaittimeout;
};

HTTP_SVR_NS_END

#endif //__INCOMING_H__

